import request from "../request";

export function shopCarAdd(data) {
  return request({
    url: "/shopCar/add",
    method: "post",
    data
  })
}
export function getUserShopCar({shopid,userid}) {
  return request({
    url: `/shopCar/get?shopid=${shopid}&userid=${userid}`,
    method: "get"
  })
}
export function changeShopNum({id,num,state}){
  return request({
    url:`/shopCar/change?id=${id}&num=${num}&state=${state}`,
    method:"get"
  })
}

export function clearShop({shopid,userid}){
  return request({
    url:`/shopCar/clear?shopid=${shopid}&userid=${userid}`,
    method:'get'
  })
}

export function getUserShopCarInfoData(userid){
  return request({
    url:`/shopCar/userShopCar?userid=${userid}`,
    method:'get'
  })
}